package com.lintf.flowable.service;

import com.lintf.flowable.domain.WorkOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lintf.flowable.dto.ProcessLaundryDTO;
import com.lintf.flowable.dto.WorkOrderDTO;
import com.lintf.flowable.model.WorkOrderModel;

import java.util.List;
import java.util.Map;

/**
 * @author lintf
 * @description 针对表【t_work_order】的数据库操作Service
 * @createDate 2025-01-22 15:36:34
 */
public interface WorkOrderService extends IService<WorkOrder> {

    List<WorkOrder> getWorkOrderList(WorkOrderDTO dto);

    List<WorkOrderModel> getWorkOrderListByParams(WorkOrderDTO dto);

    Map<String, Object> getStatistics();

    void updateBusinessStatusByProcessInstanceId(String processInstanceId, String businessStatus, Long completeTime);

    void saveWorkOrder(ProcessLaundryDTO dto);

    WorkOrder getWorkOrderByOne(Integer userId,Integer studentId, String businessStatus);
}
